<?php 
session_start();
if (!isset ($_SESSION["token"])){  
  header("Location: login.php");  
}
require_once '../../config.inc';
require_once '../../lib/common.inc.php';

?>
<?php
$pass=new Password();
$mysql=new mySQL(array( "db_user" => $_SESSION["dbuser"],
                          "db_pass" =>$pass->decrypt($_SESSION["dbpass"]),
                          "db_host" => DB_HOST));
$mysql->dbconnect();

$serverData=$mysql->getMysqlServerData();
?>
<div style="margin:5px;">

  <table class="server_data">
    <?php
    foreach ($serverData as $k=>$v):
    ?>
      <tr>
        <td class="srv_title"><?php echo $k?></td>
        <td><?php echo $v ?></td>
      </tr>  
    <?php
    endforeach;
    ?>
  </table>

</div>